<template>
<h3>ComponentEvent-title</h3>
<child @someEvent="getHandler"/>
<p>父元素：{{ message }}</p>
</template>
<script>
import Child from './Child.vue'

export default{
  components: { Child },
    data() {
        return {
            message:""
        }
    },
    methods: {
        getHandler(data){
            console.log("触发事件->",data);
            this.message = data;
        }
    },
}
</script>